Fixed read overflow error