latex mode, bug correction