I didn't want to do this, but it needed to be done. (fixed editor var in refreshAnnotation, that should be reverted later)