fixed error in GPUSolver caused by new PR changes