fixed the lose state