fixing roms time index error