Fix crash on invalid instruction