update reference correct error in ogrady