fix chapter saving