fixed freq error when compiling