fixed switch skeleton restart bug