Fixed bug where one side of rectangles was not offest