Thanks for your answer, I guess the problem I get comes from the code.
I've left a post about it in the right section.