Fix of sigmoid derivative