fixed bugs of random labels