fix issue with using AWS credentials from the config file