Reverting changes in invalid models