fix the bug in filterAdapter class