Fixed issue with lab 5 multithreading.