Fixed selection for rectangles drawn upwards and backwards.