Fixed a deprecated warning.