Fixed bug in un-panic logic.