Actually, it was my mistake! I forgot to give it an id when creating it (and left it 0 by mistake)
Sorry for wasting your time. I wish this forum let new users delete their posts...