Fixed a bug with reloading non-writable code.