Fixed a bug about reading.