fix web ui fatal errors (fixes #611)

a few more web ui fatal errors to be fixed... please stand by