fix rect case, did not notice it was broken