Fixed bugs on Rect_s.