slightly improved robustness of UA check