Fix missing_doc warning
Fix deprecation warning