Fixed duplicate line, timeoutIndexDetect init.