Fixed bug with determining number of sections in table view.