fixed angular bug with repeat