Fixed proxy ticket

Hi,
I was testing proxy tickets and I found couple of bugs.
These are the fixes.

Cheers,
Fabrizio