Fixed Dialog Crash