fixed editor crashes