fix #729 initialization when loading an existing script
Merge pull request #749 from waterbearlang/729_initialize_codemap

fix #729 initialization when loading an existing script