Fix for cannot read property 'isImmutable' of null, fix #62