Fixed casting exception in import wizard.