Fixed issue for modalViewController.