Fixed Thrust 1.5.3 compatiability issue