[Core] Fixed compile/logic error with LFGMgr