fix data extract for ec2