Fixed crash bugs with widgets.
Fixed crash bug if transfer progress dialog was already destroyed