fixed raced condition with status