Bug fixing missing repository var in a view