race condition fixed

tags: relevant