fix bug with refresh after labeling