Fix deprecation require