Fixed logout redirect bug.