fixing exception when reloading editor fix #13