reverting change for selecting a rect