fix an EC2 bug