Minor ref cleanup