Fixed redirect bug on logout