Hack for potential race condition.