Generator : Fixed some ridiculous mistakes

Made all the OpenCL tests segfault on ViennaStar. I apologize, I'm tired!