fixed the errors, with rects not having pos