Fix pinning project segfault
Merge pull request #546 from marynate/PR-fix-pin-project-segfault

Fix #526 segfault when pinning projects