fixing bug in subdomain mapping