\ref -> ~\ref as in #1045 by @feges