Fullscreen crash fix, some safety checks