Fixed major disconnect bug.