Bug fix: checks that sub object is defined