Fix partition offset