fixed codes in common.network package.