fixed a race condition related to uID