fixbug:can't new seesion and windows