bug correction for amazon Ec2 contract