Fixed exception in VS design panel