FIX catch deprecation warning