Ah sorry, the code doesn't did what I've expected to.
I'll post here if I found a solution.