Small fix in reference parsing.