Fix template |Length call