Fixed a bug of Template is missing