Fixed error ins gen_stubs script.