Handle chapters close to the end (ashamedly previous versions could not be used for them)