Fixed editor script.