credentials bug fix