fix uid null issue at purchase