Fixed credentials reading.