Fixed the opening bug

no longer have that nasty bug where it'd error the first time you open
it in a new session of Max