fixed math rendering