Changed annotations refresh code to be thread-safe in order to fix "Collection was mutated while being enumerated" error.