Fixed bug where the dialog was filled on fade out