Fixing rebuilds migration