Good catch! Somehow the line for regenerating applicability by repos after updating the profile got deleted by mistake. Added it and added some extra assertions as well.