fixing math delimiters