Fix complietion_tried condition when pop up menu is visible