Trying to remove memory management issues in charts