fixed bug in ngRepeat