Fix a couple of problems with get_math{}