Fix deprecation on 'stub'.