Fix for issue #139. Import failed when in 'add' mode.