fixed syntax in autodetection