tried fixes to minmax GPU bug