Fixed multiple entries into max_n