fix severals bugs  on pinned items