Fix bug for setting ec2 tags