Fixed bug while reading two times