RTWYSIWYG-4: Algorithmic failure -- Fixed typo and changed the incorrect way that patching was being done.