fix read sim bug