fixed typo in user-agent check