minor fix and optimization to VerifyXyziBuff