Fix template: len() does not exist, | length does