fix problem with ngRepeat