Fix deprecation warning, close #112