Fix template filter