Fixed a bug with pthread dispatching where all threads received thread
1's data