fix uninitialized thrust count (found by Jeremy)