fixed editor script