fix syntax problem in detectsrctype