fixed bug in startupcode.h