Fix bug in updatemetadata