Fixed some cruical bugs that affected ability to connect to XOBXOB server.