Bad exit fixed