[BUGFIX] Hide foreign_selector if maxitems is reached