Fixed bug in numDiff