Fix patch migration