Desktop always reverts to 1 when I quit an app

In TS2, whenever I quit an app the desktop changes from whichever one I am on to Desktop 1.

I think I have found the culprit. I am running Time Machine. TS2 moves to whatever desktop Time Machine is on. Problem resolved.