Fix legacy repository type