Fix table repair with autoupdate