fix bugs in data providers and WebSocketDataProvider addChart