fixed typo on references.cpp, thanks Felipe