Don't select a new created tab before setting its properties