Fixing onError not called on importMesh