Fix emit instruction state