fixed bug with chapter editing