fixed some bugs in proxy classes