Error using twitter input LS 2.1.1

I just tried to use the new proxy setting with logstash 2.1.1

Unfortunatel y I get this error. The log file grows by about 5MB per second after starting logstash.
Cant get the formatting to wark at the moment

This is the error:

{:timestamp=>"2015-12-09T11:20:17.521000+0000", :message=>"undefined method filter' for nil:NilClass", :exception=>#<NoMethodError: undefined method filter' for nil:NilClass>, :backtrace=>["/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-input-twitter-2.2.0/lib/logstash/inputs/twitter.rb:128:in `run'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.1.1-java/lib/logstash/pipeline.rb:206:in `inputworker'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.1.1-java/lib/logstash/pipeline.rb:199:in `start_input'"], :options=>nil, :level=>:warn}

This is my config:

input {
twitter {
consumer_key => ""
consumer_secret => ""
oauth_token => ""
oauth_token_secret => ""
keywords => [ "elastic" ]
full_tweet => true
use_proxy => true
proxy_address => proxy
type => "twitter"

}
}

filter {

if [type] =~ /^twitter/ {
mutate {
add_field => {
"_retention" => "90"
"_project" => "twitter"
"_env" => "prod"
}
}
}
}
output {
if [type] =~ /^twitter/ {
stdout {
}
}
}