Modification in the function 'resize' by deleting the new character added.