corrected infinite loop due to chapter pagination not reporting finished