rhogen: fix generation for entitygen