bug fix : credential object that was getting reused