Fix derivative regenerating.
Merge pull request #90 from jordandukart/7.x

Fix derivative regenerating.