Hi Thiago,
It might be that you have inadvertently modified a line of code in the notebook which sets the device. Here is a thread which discusses a very similar problem, you can check it out and see if it resolves your issue.
Let me know if the issue persists.