fix bugs
fix fatal bugs
fix the bug of ending