revert command fixed, keeps correct code