fix label's maxWidth calculation