fix problems with chapter