Fix some exceptions in "Debug->Attach to Reveal"