improved novnc bug