fix max field count
fix sproto stream
fix gen example