Change how chart replacing is done