fix read mode