Fix cfg/cfg_impl