Fix deprecation warning (ref #213)