Select correct tab by default.