fixes logic problem with getting all descendants