Fix derp in derivative implementation.

Had started carrying through a later aborted change.