fixes for the latext editor