Fixed pika deprecation warning