fix chart not appearing bug