fixed label clearing bugs