fixed issue #3: no longer crashes when you open a new scratch project