Fixed bug when using limit on detect and specifying languageType