ignore invlid entries in the template