Fixing bug throwing exceptions due to migration kernel [ci skip]