Fixed some cases where changing a program line would fail to keep two zero bytes at the end of the program text.