Fixes issue #128 (Sinopia crash after click in web UI)