fix loading of tag into edit dialog