Getting rid of a fail case in get_next_name