Fix bugs of executing filters when data have been loaded into database.