fixed chapter extraction