fixed configs in Modal causing issues if hide is called without an event.