Fix illegal instructions