Fix field length calculation for textarea usage