fixed bug with recursiveConvert