Fixed reverting error