Fixed error in preceding commit that made the inDom = false crash