Fixed bug in directional FD derivative