fixed regression in cangen plugin