Elastic search template variable corrupts on dashboard refresh

I created a template variable of query type using elastic search in a dashboard, and the variable works fine, it is able to show correct values initially. Now when I go to other dashboard or make any change in the current one and refresh it, that template variable does not show any value. What can be the problem?

Not sure, any error in chrome js console?