Reset uid when it's larger than 10000