Fix old ref error