Javascript fix to add_filter_control