fix math paths