Fixed bug with domain