Added a little hack to fix premature reference of global myscreen.  This should be fixed for real by making the viewport constructor not use myscreen.