Fixed logout block issue