fix data detectors bug. close #465.