fix math latex environment (with two cursor at the same time)