Fixed pinned courses serialization. Now the serialization works similarly as Cache works.
Now my courses page updates correctly when new courses are pinned.