Fixed two bugs in NetBase