fixed race condition section in concurrency lab