Fix bug: read mode error.