Fixed rect conversion issue