core: fixing assert