Fix bug with import feature

Update existing keys during import.