Fix chapter loading bug