When switching to a different space, OS X sometimes just switches back to the previous space. Is there a fix for this?
I have the same issue on High Sierra and only just figured out what's causing the issue for me. It happens when I:


have the same application open in both desktops/spaces, Chrome windows in this example
switch from Chrome to another application
change desktops


It will revert to the previous desktop and make Chrome the active application. Now when I change desktops it will not switch back. I have not yet found a solution to this issue, other than making the application that is on both desktops, the active application before switching.