fixed updating of labels issue. fixes #47