Fixed a small deprecated usage warning