replace deprecated .stub! method with .stub for vendor plugins