fix a bug of update switch
add WaitFrame. Used when click small map or refresh switches