Bug fix for ALPH max_len