Fix bug where bad chapter is found found when searching it by number