fixed error when a ROM file is not used