fix the bug that UA can't be got.