Removed another deprecation warning.
Fixed a typo.