fix gemset pristine, update #1647, fix d43f40c8f6a74cb443d295471741a6182c02b8f1