Clean up leftover  refs.