I know, also it had a lot to do with stronger dollar, but because I don't think that they will be manufacturing to much (we have seen the low prediction numbers) they should be able to make a profit again (of course if the launch some good titles).
Also, I do think that they will improve with on-line gaming. Splatoon is the start and I think that at the end it will be good (actually, the only problem now is the VC, everything else is there, or will be there - it's announced).
It is helping, but I think that they did say before that they will start making money from every unit sold, because of low production costs (as @Rummy said they had lot of the units in stock).