Fixed problematic gpu-array creation