fixed problem with global inits in interpreter
fixed problem in unit object editing helper

code created the object twice