small fix due to libmath_func changes