fixed editor to save code