Well, in my opinion, both sentences are correct.
Dycristina, you have done well in coming here to ask over it, because the google translator or any other system of automatic instantaneous translation do not work perfectly. In other words, often, all of these systems present mistakes, mostly related to the context. Therefore, no one can rely on these systems entirely. You can use them, however use them as a reference. Never use google translator and other similar systems as being 100% reliable, ok.
I hope to have helped you.
Bye, see you soon.