fixed empty chapter bug