Fixed writing instructions to memory