fixed  dismissModalViewControllerAnimated crash.
fixed dismissmodal crash bug