Fixes #5513. set is built-in since 2.4 and deprecated since 2.6