fix for _chat template