fix reverting error