fix getUserDetails error.