Fixed a bug, and improved some network stuffs.