fixed crashing on ROM open