Fix "repository" field and "type" attribute