Fix for missing max_length