fix prevent default bug, don't show menu if there aren't any matches