fixed bug where latex was being generated either remotely or not at all