Thanks @jleonhol for spotting this error where a condition was wrongly copy-pasted.
@emartinv please pull this fix otherwise you will have some SFs being always set to 1.0