Bug fix for BLANK max_len