fix default io generic parameter.
fix generic io issues.