a temporary solution to fix the count of generated labels