fix refObjects table repair