Fix and refactor save_filter callback of site. bugid:112416