fixed AWSError processing