Fixed wrong filters for deleting chart.