fixed race condition in AutoFocusManager