fix fatal bug before bedtime