fix rectToPoly in AARectShape