[core] fix several errors