corrected points of the rectangle but errors exist when calling rectangle points