bugfix in attachment import