trying to fix intermittent template rendering error