Fix uses of incorrect reference. Worked under VS2013 but nott GCC.