Fixed initialization of GPU arrays