fixed chapter flow issue