fix issue where chart was not being filtered correctly

resolves #29