Fixed bugs with boxcar in high resolution.