Let's repair tables only if they need to.