Fix the clicking bug and stop some latex from killing the server