Commit before solving problem with rectangles