core: fix warning

introduced in c7040b5d1c2c148f12b6a5eef3dfce1661805131