do not travel to unreachable majors

Signed-off-by: Mattias Andrée <maandree@operamail.com>