Fix editor random crash