bug fixes for GPU 32-bit