Fix deprecated features

I fix a bug refering #2 .