Fixed typos in a couple of deprecation warnings