Fixed top level instance bug
Fixed dialogs crash.
Fixed conflicts

"