fix Rect SIDE->SIDES and CORNER->CORNERS