fix to dont lose the last item on the command line