Fix issue when having multiple charts on same page