Fix a minor bug in the tabbable menu helper