Fix RestoreSources for optdata packages