Fixed EndOfStream bug while opening GUI on server