Disconnect WiFi and Turn On Cellular data

I have an automation shortcut when step outside of my home to ride a bike, when wifi is not in range, cellular data will turn on, and outdoor cycling workout will run together with playing latest apple music playlist.

My issue is, it runs randomly, i am still connected to my wifi and yet the automation still starts, i tried using the wait action and entered lets say 30 seconds, still it randomly runs the automation.

Any suggestions or tweaks I highly appreciate. Thanks guys.