Fixed template preprocess issue