math mode fixes, fixed #69