overriding update metadata to make sure  it does not fail on version control. fixes #3619