fixed #2 - Secondary / Primary hide state not works correctly