Fixed build_list_spec