Fixed race condition init_filter()