Fix the 'pinned' state. Take two. (#165)