fix rect