Refs #503, fixes a few small bugs in the batch import.