fix rect case