Fix deprecated call.