Fix network dependency
Fix type error