Fixes issue #53 (filter by selection was broken in charts)