Fixed blockIdx instead of threadIdx