L'ho spostato in c:
e sembra funzionare tutto. resta il mistero