fix ec2 key delete error.