fixed a bug in WebUI regarding uninitialized values in WebUI (thanks to marc)