Fixed deprecation warning
1.0.6