indexes added to wrong table