Fixed bug with homepage as referrer