[Fix] Invalid solution in differentiation.

When the candidates of derivative included definite number of zero,
the result was zero instead of the values of the other candidates.