fix error on userid is not string