fixed bug in script richiesta