Fixed repository .add method call