modified rect_set to handle an empty dimension