Fixes referer url processing