fix chapter detection to be more accepting