[Fix] Calculation in differentiation.

Deleted all parallelization in derivative calculation.