fixed passing 2D array to kernel