Fixing up mandrill and mailchimp errors in scoping variables