Fix for undefined property and contact not being added to sub group