Better implementation of letting the MAIN frame have a uuid
remove unnecessary use
Fix bug when stepping into an untrapped die