Fixed bug in MainViewController.