Fixed race condition in output