Fixed clearing autoDetect