Fixed bug of rectangle manip and tested in the lamp