Finnaly, the correct solution.