Fix mac change through the API v2 (issue #4754)