Fixed issue with object creation.