=fix rect bug