fix rect issue