Fixed object name error in constructor