Fix the conditional statement

Fix the conditional statement to check on instance_name.