fix read_csr error