Make correction to numerical differentiation function.