I'm not sure what the problem is? But you can try disabling STP and re-enable it. This isn't really advised! If you’re trying to change root bridge or packet route change the switch priority or port cost instead.
It depends on the hardware you have but you can turn off Spanning Tree Protocol (STP) on a per-VLAN basis, or globally on the switch. Use the
no spanning-tree vlan vlan-id command in order to disable STP on a per virtual LAN (VLAN) basis.
no spanning-tree vlan all command in order to disable STP globally.
Or try
set spantree disable [vlans]
set spantree disable all
Becare in a production network!!
Note:
Extreme care needs to be taken whenever you disable spanning tree because this creates Layer 2 loops within the network. Do not disable spanning tree in a VLAN, and make sure that there are no physical loops present in the VLAN