fixed exit after losing