Fix bugs related to list names with spaces.