Bugfix: regression local metadata were not saved