Fix crash on loading web interface (fixes #2)