[core] gc engine: fix several errors