fixed issue with duplicated keys in pins storage