Fix opening gui on server