Fixed post-mortem & agent bugs
Fixed post-mortem bug