fix build exception due to invalid contents of designer.