small fix in import hook