Fix default tab not setting correctly