fixed issue where parent == null (which is the case when dropdown is used seperately from tabs)