fixed issue with the 'list' command not working properly with passed args