Fix sign error in Box::isWaveformInside