fix for precision on some gpus