trivial bug fix in import func.