Minor change in how to interpret selected rectangle.