fix bug/typo in thrust_algebra