fixing the min/max size constraints