Fix newline issue of references.