fix getUidByETag() logic