Fixed bug in aws.