Fixed bug when domain does not exist. no 404 is returned