Fixed rect size bug