Make sure only parent items are styled