fix issue with request[:referrer] due to 2x page loads