Fixes crash with only one virtual desktop.
Merge pull request #8 from r2ethan2/patch-1

Fixes crash with only one virtual desktop.