invalid labels bug fixed