Fixed modify latex bug