Fix JavaScript error with "poolVersion" setting