fixed exception crash when a controller instance is removed from its superview