Fix crash on loading web interface