Fix crash at import