fixed npe
example charts are generated, resolves #182