fix display of figure equations