Fix type in deprecation