Fixes improper reversion.  Thanks @nicolasbadia