fixed problem with choosing first entry by popup