User agent match functions fixed