Fix broken sequences during upgrade
fix