fixed adding properties with null key