fixing invalid revert