rect draw fix