Fix for OAUTH redirection