bugfix for logout redirection