Removed a call to a deprecated method