critical bugfix to structure reader offset