Fixed bug - I variable was getting changed in the load_rom functino.