As the image below shows, I've a few applications which I keep open on my main desktop and I've another space/Desktop for applications like Twitter for Mac, Stickies, etc.

Now, the problem is that when I restart the system (I use the setting - "Reopen Windows when logging back in"), all the application windows which are opened on the Desktop 2 come up on the Desktop 1, instead of Desktop 2 where they were present originally. Is there a way to preserve their location after the restart?