fix issue second last character