fixed loading credentials