Empty Buckets in Terms Aggregation when using .keyword

I think I found the reason why i doesnt work: on the server deployment a 2.x version is running, while on my local deployment it is a 6.x version