fix read int