Fix deprecation with pathogen