fix web ui fatal errors

Fixes #611 #614 #613 
Oops, sorry :unamused: