core: fix part of compilation issue