fix in derivative