Bug fixd: null pointer expection in MainBodyDetector.cs