small bugfixes on mass import