I am using a Mac Mini with Yosemite, and I noticed that the Spaces desktops keep increasing. I delete them to keep one desktop for each of the monitors I am using, and I end up with 26 of them on the main monitor.
What is causing this, and how can I fix it?