The second call was the correct call. The first one was not.
That being said, Battles fifth foul was a horrible call by the ref. It also gave Nebraska 4 points with Ben legitimately sticking up for Battle. (That, by the way, was the calmest technical I've seen. I would have gone Bobby Knight on...