Fixed math rendering problem