[fix] for rectangle function