bug: infinite loop while loading offsets