fixed context switches

Before this fix we were returning to the first position in dictionary
after each context switch if selected item number is more than qtable
buffer was selecter