Fix bug in differentiation of a power.