fix pinned attribute in set credentials