fixed a bug in list_get