Fixed server crash, improved gui.