Thanks Charles for your support, that was the problem. I fixed it it the script and now it´s working.