Fix bug in referenced results.