Fix bug some compositions not being filtered because of case