fixes a redirect bug..interstingly it manifests on the live site only..