fixed SingleAction class so that it sets its own reference to its
domain.