label generator bug fix