fix partition offsets, thanks to @YetAnotherForumUser