fixed error with ec2