Fixed a minor bug in the list-domain function

There was a minor bug in the list-domain function which
should now be fixed.