Fixing paint rects