Fixed crash when opening recent projects.

STOP REVERTING MY CHANGES TO MAIN.DESIGNER, TOM.