Fixed restricting browser user agent

Fixes #825