Fixed the read bug where the num of chars was halved and fixed the modify method