Fix simple links, retrieving a nonexistent ref by name