fix instruction genreation