bugfix in math.h