Fix spelling, fix deprecation warning