Non vedendo il codice di struttura diventa difficile aiutarti, posta anche quello.