Fix latexengine compatible with server