Removed duplicate call to getReferenceValue.