Fixed typo. Prevent crash when dismissing modal view.