Fixed an issue where variables wrongly assigned

to the wrong virtualhosts.