Fix type in filterNot implementation