fix getstate and setstate methods in Pool's channels