Fixed minor deprecation