Fix credentials file bug