Fix error when using Chrome with mobile user agent string