Fix a bug occured when no template string exist