this doesn't look right. won't this miss any remote apps that don't have cases at the top level, or anytime a case is in a repeat?