corrected bug with proxy