Fixed Freezing on ShowDialog()