fix createchapter bug