fix for maxlength styles