Setting of primary tasks works properly

Yay! At last! :D