fix deprecation crash