fixed virtual namespace handling - properly

thanks to @cdent for spotting this