fixed errors in filter template