fixed adding nil to object array