fix pretty dumb ref bug