Fix serialization bug.
In presentation mode, return focus after executing a step.
Don't skip initializing the target window because InitialCode is empty.