fixed bug in exp derivative