Bugfix: Corrected determination of previous chapter.