dismissViewControllerAnimated bug in ios 8