fixed bugg with adding labels to bookmark due to problem with scope