Fix initial bug with cpHostToDevice