fixed copying of startglobals