fixed crashing on ROM open
Merge pull request #92 from anakota/master

fixed crashing on ROM open