More work trying to get the list prompt to not segfault