fix syntax error.
Fix a bug where no tab selected would not add the button to the default row.