Fix set_last_char omission