Fixes out of bounds error in OpenCL NGram Generation