subtle fix to ref