Fix the typo for terminate