Reverting changes properly