Fix dialog select when control 5 is visible