Fixed loss of custom windows on End Flight->VAB

And probably in other situations.