Fixed the offsets generator.