fix some little bug
improve filter module and fix some bug
增强程序健壮性，避免出现死循环的情况
improve code block