use the correct modern API (#3984)

1 file changed