fix 'not opened' ws-error