Fix tab layout bug