Fixed some code and a reorder bug (There were empty rectangles after ordering)