Move $proxy_magic parameter to correct type

It was added to the wrong type.