Fixed a bug causing find_all_viewable to return incorrect results.