Fixed bound checks on cl kernel