After expanding all the templates, the page size is bigger than $wgMaxArticleSize, so some templates weren't expanded.
$wgMaxArticleSize