BUG: Correct derivative for exponential transform.

See if this fixes #1539.