fixing offsets