fix the revert way