Bug fix in math-stack (fmod function throws when first arg is inf)