Fix repository service in model