fixed chart bug (updated lib) and a typo