fixed the revert and stay