Fix for ec2