fix bug in splitdetector