Fixed problem with charts not working after switching records.