Fix bug in block filter