Fix a loading template issue