patch from oficial repository
https://github.com/pika/pika/issues/352