Remember refs in each side, too.