Fix bug in WindowQualityScoreFilter