fix rect type