fixed compat_fg