[BUG] Fixed memory leak on proxy class