Fixing language bugs with chapters