fix import from old databases versions.