Fixing math library