fix proxy construction
Merge pull request #4 from 4z3/fix-proxy-construction

fix proxy construction