Same here. Just to be sure, check if `.term_end` exists before getting the substring.