Fixed bug of rectangle manip