Make collapsed parents open first.