Fix bufferCompare