GPU fixes

Signed-off-by: Stefanescu Cristian <howerkraft@gmail.com>