Fixed bug in panic mode - now works correctly