fixed rectangles being placed in incorrect spots