fixed the compile error when fgr is not configured.