fix read instruction code