fix GPU constant problem