fixing ngRepeat:Duplicate error