fix bugs for realtime charts