Fixed bug in autoDetect