corrected err in rects