fixes the list command