fixed a crash that occurred when single IDs were passed to the --ids= parameter