pid variable needs to be set before being assigned to chapter_parent
Merge pull request #80 from bdolor/wxr-import

pid variable needs to be set before being assigned to chapter_parent