handling of NA in filter. closes #249