Fix usage of load of repository