Fix PR gh-90

If cause import crash in some cases.