Fixed crashing with websockets toggled off