fix a filter bug in html template