logout redirection bug fixed