Fixed crash on import