Fix for referer-parser rewrite