Il codice mi sembra corretto...provi a postare quell'eccetera?