Pool key is not properly computed when proxy is defined, close #508