fixed ws.resume exception