Fix deprecation annotation