fixed apigen genrated bug