fix fatal detection
Merge pull request #280 from stagas/fix-fatal

fix fatal detection