Concordo con enigma_79.
E grazie per aver postato il codice corretto. Serve anche a me.