fix crash when loading restart point