fix editor macro