core: improve the conversion of address to position ; ui_qt: fix bug when removing the first label