FIX: sometime other tabs could not be selected.

A boolean value is used without initialisation and could be true or
false without predictability.