Fixed a deprecated warning