fix crash when loading rom fails