Fix the default tab is not active when hash is empty