fixed editor initializing