Fixed some bugs in MathConstantView

Signed-off-by: TimdeJonge <t.dejonge@students.uu.nl>