when we set the language to automatic, it seems like it prints the output twice