Fix math library