fix crash on deleting ROM image