fixing repositiry model