fixes for weakproxy error