Fixes issue #18
Merge pull request #21 from distantcam/master

Replacing instructions must update branch instructions too