fix credentials ref