Fix insertion of Cards heading when subtrees exist