Fixed progressbar not matching with chapters bug.

The tic marks for each of the chapters now match up with where the
progressbar is when each chapter starts and ends.