Fixed Infinite Loop Bug

Bug fix to stop MB crashing on closing the first screen.